<?php
	require_once 'EltAct.class.php';
	class StoreAct extends Elt
	{
		private $Position;
		public function __construct($ID_Element, $Debut, $Fin, $Position, $ID_ActionElement)
		{
			parent::__construct($ID_Element, $Debut, $Fin, $ID_ActionElement);
			$this->Position=$Position;
		}
		
		public function __get($name)
		{
			if(property_exists(get_class(), $name))
			{
				return $this->$name;
			}
		}
		
		public function afficher($c)
		{
			if($c)
			{
				$class = 'divChauffage0';
			}
			else
			{
				$class = 'divChauffage1';
			}
			echo "<div class='".$class."'>Du ".date('d/m/Y H:i:s',$this->Debut)." au ".date('d/m/Y H:i:s',$this->Fin->Debut).
			"<br/>Store ".$this->Description." :<br/>Pièce : ".$this->Piece."<br/>Position : ".$this->Position."%";
			echo "<br/><a href='calendrier.php?idActionElement=".$this->ID_ActionElement."'>Supprimer Evenement</a></div>";
		}
	}

?>
